package com.dcd.mapper;

import com.dcd.pojo.Brand;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BrandMapper {

    /**
     * 查询前32个热门品牌/根据指定首写字母查询
     * @return
     */
    List<Brand> select_popularity_brand(@Param("brand_first_letter") String brand_first_letter,@Param("whether_only_on_sale") String whether_only_on_sale);

    /**
     * 查询指定品牌信息
     * @param brand_id
     * @return
     */
    Brand select_brand_mess_by_id(int brand_id);

    /**
     * 查询所有品牌(购车计算)
     * @return
     */
    List<Brand> select_brandAll();



}
